<template>
  <div class=""></div>
</template>

<script>
export default {
  name: '',
  components: {},
  props: {},
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  async mounted() {
    let name1 = await this.init1();
    console.log(name1);
    console.log('!!');
    const name2 = await this.init2();
    console.log(name2);
  },
  methods: {
    async init1() {
      return await this.$Axios({
        url: 'http://10.6.0.223/api/sysmanage/user/login',
        method: 'post',
        data: { password: 'bece905d86c50c8b6aea853ac2568f5c', username: 'admin' },
      }).then((res) => {
        return res.data.data.realName;
      });
    },

    async init2() {
      return await this.$Axios({
        url: 'http://10.6.0.223/api/sysmanage/user/login',
        method: 'post',
        data: { password: 'bece905d86c50c8b6aea853ac2568f5c', username: 'smnxt' },
      }).then((res) => {
        return res.data.data.realName;
      });
    },
  },
};
</script>

<style scoped lang="less"></style>
